package com.liull.spring_anno.config;

import com.liull.spring_anno.component.Car;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Configuration;

/**
 * @Author: liull
 * @Description:
 * @Date: Created in 12:12 2020/4/9
 * @Modified By:
 */
@Configuration
@ComponentScan("com.liull.spring_anno.bean")
public class MainConfigOfLifeCycle {
    @Bean(initMethod = "init", destroyMethod = "destroy")
    public Car car() {
        return new Car();
    }
}
